<?php 

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;

class MemberPresenter extends Presenter
{
  
    public function memberStatus()
    {
        switch ($this->status)
        {
            case 1: 
                return '<span class="green">正常</span>'; 
                break;
            case 0: 
                return '<span class="red">冻结</span>'; 
                break;  
            default: 
                break;
        }        
    }


    public function memberGendar()
    {
        switch ($this->gendar)
        {
            case 1: 
                return '男'; 
                break;
            case 2: 
                return '女'; 
                break;  
            default: 
                break;
        }        
    }

    public function memberRecruit()
    {
        switch ($this->recruit)
        {
            case 0: 
                return '<span class="green">不处理</span>'; 
                break;
            case 1: 
                return '<span class="red">未审核</span>'; 
                break;  
            case 2: 
                return '<span class="green">审核通过</span>'; 
                break;
            case 3: 
                return '<span class="grey">审核拒绝</span>'; 
                break;
            default: 
                break;
        }        
    }

}
